package com.twang.stock.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;

/**
 *
 CREATE TABLE stock (
 id INT PRIMARY KEY,
 count INT,
 stock_name VARCHAR(255),
 total_fund DOUBLE,
 choice_count INT,
 comments_count VARCHAR(255)
 );

 */
@Data
public class WanZhuHotStock {

    @Id
    private int id;

    /**
     * 排名
     */
    @JSONField(name = "count")
    private Integer count;

    /**
     * 排名
     */
    @JSONField(name = "stock_name")
    private String stockName;


    /**
     * 资金（万）
     */
    @JSONField(name = "total_fund")
    private BigDecimal totalFund;


    /**
     * 资金（万）
     */
    @JSONField(name = "choice_count")
    private int choiceCount;


    /**
     * 评论
     */
    @JSONField(name = "comments_count")
    private String commentsCount;


    /**
     * 排名
     */
    private Integer rowNo;



    private String date;


    /**
     * 描述
     */
    @JSONField(name = "stock_desc")
    private String stockDesc;

    /**
     * 代码
     */
    @JSONField(name = "stock_code")
    private String stockCode;

}
